package com.hxd.otc.module.wallet.adapter;

import android.widget.CheckBox;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hxd.otc.R;
import com.hxd.otc.module.wallet.bean.WalletCurrencyBean;

/**
 * 作  者 :  zjl
 * 时  间 :  2018/6/5 18:03
 * 描  述 :  ${全部订单页面}
 */
public class TransferCoinAdapter extends BaseQuickAdapter<WalletCurrencyBean, BaseViewHolder> {

    public TransferCoinAdapter() {
        super(R.layout.item_transfer_coin, null);
    }

    @Override
    protected void convert(BaseViewHolder helper, final WalletCurrencyBean item) {

        if (item.isCheck){
            helper.setChecked(R.id.cb_coin_name,true);
            ((CheckBox) helper.getView(R.id.cb_coin_name)).setTextSize(16);
        }else {
            helper.setChecked(R.id.cb_coin_name,false);
            ((CheckBox) helper.getView(R.id.cb_coin_name)).setTextSize(13);
        }
        helper.setText(R.id.cb_coin_name,item.getName());

    }

}
